package com.github.catvod.spider;

import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.Dv;
import com.github.catvod.spider.merge.HZ;
import com.github.catvod.spider.merge.Lm;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.lk;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Auete extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f13short = {2514, 2517, 2465, 2442, 2518, 2516, 2514, 2452, 2451, 2457, 2456, 2437, 2515, 2453, 2441, 2448, 2449, 1849, 1854, 1866, 1889, 1853, 1849, 1866, 1889, 1853, 1849, 1866, 1889, 1853, 1855, 1849, 755, 756, 647, 684, 752, 756, 647, 684, 752, 756, 647, 684, 752, 756, 683, 695, 698, 674, 758, 647, 703, 752, 758, 647, 703, 752, 757, 691, 687, 694, 695, 754, 450, 388, 387, 393, 392, 405, 453, 433, 393, 454, 452, 451, 389, 409, 384, 385, 814, 806, 823, 811, 812, 807, 434, 432, 417, 3301, 3264, 3287, 3266, 3281, 3284, 3285, 3229, 3321, 3294, 3267, 3285, 3283, 3269, 3266, 3285, 3229, 3298, 3285, 3265, 3269, 3285, 3267, 3268, 3267, 351, 1852, 1846, 1836, 2121, 2159, 2169, 2158, 2097, 2141, 2171, 2169, 2162, 2152, 629, 599, 578, 593, 596, 596, 601, 535, 525, 534, 520, 536, 528, 629, 601, 603, 593, 598, 588, 599, 587, 592, 515, 536, 625, 598, 588, 605, 596, 536, 629, 601, 603, 536, 631, 619, 536, 608, 536, 521, 520, 615, 521, 525, 615, 527, 529, 536, 633, 584, 584, 596, 605, 623, 605, 602, 627, 593, 588, 535, 525, 523, 527, 534, 523, 526, 536, 528, 627, 624, 620, 629, 628, 532, 536, 596, 593, 595, 605, 536, 639, 605, 603, 595, 599, 529, 536, 635, 592, 586, 599, 597, 605, 535, 513, 521, 534, 520, 534, 524, 524, 527, 522, 534, 521, 521, 524, 536, 619, 601, 606, 601, 586, 593, 535, 525, 523, 527, 534, 523, 526, 2300, 2270, 2270, 2264, 2253, 2249, 2345, 2360, 2341, 2345, 2418, 2357, 2345, 2352, 2353, 2417, 2364, 2349, 2349, 2353, 2356, 2366, 2364, 2345, 2356, 2354, 2355, 2418, 2341, 2357, 2345, 2352, 2353, 2422, 2341, 2352, 2353, 2417, 2364, 2349, 2349, 2353, 2356, 2366, 2364, 2345, 2356, 2354, 2355, 2418, 2341, 2352, 2353, 2406, 2348, 2400, 2413, 2419, 2404, 2417, 2356, 2352, 2364, 2362, 2360, 2418, 2346, 2360, 2367, 2349, 2417, 2423, 2418, 2423, 2406, 2348, 2400, 2413, 2419, 2405, 2959, 2989, 2989, 2987, 3006, 3002, 3043, 2946, 2991, 2976, 2985, 3003, 2991, 2985, 2987, 3112, 3130, 3199, 3089, 3100, 3198, 3112, 3130, 3177, 3107, 3183, 3170, 3196, 3178, 3198, 3112, 3130, 3199, 3078, 3077, 3177, 3107, 3183, 3170, 3196, 3173, 3198, 3112, 3130, 3199, 3098, 3097, 3177, 3107, 3183, 3170, 3196, 3175, 3198, 3127, 3132, 3199, 3079, 3073, 3177, 3107, 3183, 3170, 3196, 3169, 3198, 3127, 3132, 3177, 3107, 3183, 3170, 3196, 3168, 767, 739, 739, 743, 740, 685, 696, 696, 758, 738, 754, 739, 754, 697, 743, 741, 760, 696, 1128, 2223, 1098, 3148, 3082, 3085, 3079, 3078, 3099, 3149, 3083, 3095, 3086, 3087, 650, 716, 715, 705, 704, 733, 1934, 1992, 2004, 1997, 1996, 602, 579, 513, 607, 590, 584, 582, 577, 590, 603, 582, 576, 577, 527, 579, 582, 275, 266, 328, 274, 270, 276, 259, 263, 258, 266, 271, 277, 274, 326, 266, 271, 1361, 1244, 1222, 1233, 1234, 2418, 2416, 2407, 2426, 2405, 2422, 22973, -25098, 24796, 27508, 28163, 24141, 27861, 27790, -31236, 31481, 29358, 27617, 22683, 2740, 2798, 2812, 2749, 2753, 2780, 2753, 2777, 2768, 2598, 2663, 2606, 2602, 2592, 2275, 2274, 2291, 2662, 2599, 2661, 2674, 2675, 2675, 2664, 2665, 745, 752, 763, 704, 758, 763, 1436, 1413, 1422, 1461, 1412, 1419, 1415, 1423, 950, 943, 932, 927, 944, 937, 931, 474, 451, 456, 499, 478, 457, 449, 461, 478, 455, 479, 3007, 2990, 2984, 2986, 2667, 2682, 2684, 2686, 2680, 2676, 2670, 2677, 2671, 3068, 3065, 3069, 3065, 3044, 583, 604, 583, 594, 607, 416, 421, 447, 440, 2784, 2784, 2784, 764, 742, 753, 754, 2820, 2825, 2838, 2894, 2819, 2831, 2838, 2821, 2834, 2880, 2817, 1329, 1340, 1315, 1403, 1336, 1328, 1318, 1318, 1332, 1330, 1328, 1387, 1317, 1272, 1252, 1252, 1248, 1251, 1194, 1215, 1215, 1265, 1253, 1269, 1252, 1269, 1214, 1248, 1250, 1279, 1215, 3112, 3097, 3076, 3097, 3073, 3080, 22256, 30861, 417, 443, 21877, 17916, 24426, 23392, 22770, 30148, 24196, 27499, 23158, 28318, 17082, 25493, 2573, 2580, 2591, 2596, 2578, 2591, 3134, 3111, 3116, 3095, 3110, 3113, 3109, 3117, 2834, 2827, 2816, 2875, 2836, 2829, 2823, 1032, 1029, 1036, 1049, 1059, 1042, 1053, 1041, 1049, 1079, 1070, 1061, 1054, 1080, 1060, 1056, 1075, 768, 793, 786, 809, 791, 772, 787, 791, 1243, 1218, 1225, 1266, 1247, 1224, 1216, 1228, 1247, 1222, 1246, 2262, 2255, 2244, 2303, 2241, 2243, 2260, 2255, 2258, 704, 729, 722, 745, 722, 735, 708, 723, 725, 706, 729, 708, 451, 474, 465, 490, 470, 474, 475, 449, 464, 475, 449, 2598, 2603, 2612, 2657, 2610, 2606, 2595, 2619, 2599, 2608, 2589, 2606, 2603, 2609, 2614, 2684, 2602, 2672, 1771, 1766, 1785, 1708, 1791, 1763, 1774, 1782, 1770, 1789, 1744, 1763, 1766, 1788, 1787, 1713, 1786, 1763, 14864, -717, 1376, 1403, 1784, 1789, 1716, 1706, 1716, 1781, 1515, 506, 1741, 1748, 1759, 1764, 1739, 1751, 1754, 1730, 1764, 1757, 1737, 1748, 1750, 2128, 2121, 2114, 2169, 2134, 2122, 2119, 2143, 2169, 2131, 2132, 2122, 1288, 1293, 1303, 1296, 2412, 2416, 2416, 2420, 2423, 2366, 2347, 2347, 2405, 2417, 2401, 2416, 2401, 2346, 2420, 2422, 2411, 830, 807, 784, 808, 807, 810, 824, 824, 886, 876, 805, 810, 829, 809, 810, 825, 870, 805, 810, 829, 875, 806, 825, 870, 810, 830, 831, 804, 876, 790, 885, 875, 807, 802, 875, 810, 1864, 1874, 1861, 1862, 30375, 23779, 32227, -32496, 23217, 29266, -28972, 22932, 25623, 21466, 19578, 1733, 1736, 1729, 1748, 1774, 1752, 1749, 1425, 1436, 1429, 1408, 1466, 1419, 1412, 1416, 1408, 2261, 2266, 2271, 2247, 2262, 2241, 2240, 2667, 2660, 2665, 2683, 2683, 1108, 1101, 1039, 1109, 1097, 1107, 1092, 1088, 1093, 1101, 1096, 1106, 1109, 1516, 1513, 3276, 3222, 3204, 3269, 1912, 1893, 1912, 1888, 1897, 1468, 1533, 1460, 1456, 1466, 2212, 2213, 2228, 410, 475, 409, 398, 399, 399, 404, 405, 3178, 810, 819, 824, 771, 821, 824, 2763, 2770, 2777, 2786, 2771, 2780, 2768, 2776, 2286, 2295, 2300, 2247, 2280, 2289, 2299, 3131, 3106, 3113, 3090, 3135, 3112, 3104, 3116, 3135, 3110, 3134, 738, 743, 765, 762, 967, 2679, 2667, 2667, 
    2671, 2668, 2597, 2608, 2608, 2686, 2666, 2682, 2667, 2682, 2609, 2671, 2669, 2672, 2458, 2455, 2440, 2496, 2445, 2461, 2444, 2455, 2446, 2442, 3111, 3120, 3107, 1435, 1430, 1426, 1431, 1430, 1409, 711, 704, 734, 2536, 2548, 2553, 2529, 2509, 2538, 2548, 1662, 1647, 1660, 1661, 1643, 2480, 2481, 2473, 2320, 393, 909, 910, 924, 906, 985, 987, 1593, 1613, 1444, 1489, 3095, 3083, 3083, 3087, 2428, 2338, 2404, 2345, 1622, 1610, 1610, 1614, 1613, 1540, 1553, 1553, 1626, 1631, 1610, 1631, 1613, 1555, 1613, 1542, 1614, 1609, 1624, 1615, 1626, 1611, 1543, 1607, 1607, 1613, 1610, 1616, 1543, 1550, 1624, 1628, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1555, 1629, 1631, 1629, 1622, 1627, 1552, 1631, 1611, 1627, 1610, 1627, 1552, 1614, 1612, 1617, 1553, 1635, 1661, 435, 438, 559, 562, 1778, 1791, 1760, 1720, 1781, 1785, 1760, 1779, 1764, 1718, 1783, 650, 650, 650, 1888, 1914, 1901, 1902, 3106, 3134, 3134, 3130, 3129, 3184, 3173, 3173, 3113, 3108, 3172, 3112, 3107, 3108, 3117, 3172, 3113, 3109, 3111, 3173, 3129, 3119, 3115, 3128, 3113, 3106, 3189, 3131, 3191, 2479, 2551, 2541, 2544, 2529, 2494, 2533, 2545, 2529, 2544, 2529, 2474, 2548, 2550, 2539, 1964, 1967, 2016, 1953, 1948, 1969, 1958, 1968, 1974, 1967, 1975, 1968, 2019, 1967, 1962, 2019, 1963, 2033, 1838, 1837, 1890, 1827, 1822, 1843, 1828, 1842, 1844, 1837, 1845, 1842, 1889, 1837, 1832, 1889, 1833, 1907, 1889, 1824, 1063, 1075, 1059, 1074, 1059, 1128, 1078, 1076, 1065, 1026, 1055, 1026, 1050, 1043, 2785, 2808, 2803, 2760, 2809, 2806, 2810, 2802, 22584, 602, 579, 584, 627, 606, 585, 577, 589, 606, 583, 607, 2233, 2208, 2219, 2192, 2214, 2219, 715, 727, 727, 723, 720, 665, 652, 652, 706, 726, 710, 727, 710, 653, 723, 721, 716, 652, 1636, 1661, 1654, 1613, 1634, 1659, 1649, 1767, 1762, 1784, 1791};
    private JSONObject V0;
    private JSONObject h;
    private Pattern j = Pattern.compile(C0004.m12(f13short, 0, 17, 2557));
    private Pattern q = Pattern.compile(C0007.m26(f13short, 17, 15, 1814));
    private Pattern I = Pattern.compile(C0008.m27(f13short, 32, 32, 731));
    private Pattern oC = Pattern.compile(C0006.m18(f13short, 64, 16, 493));

    public Auete() {
        int m0 = C0000.m0();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m0 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.decode(C0015.m46("1STJqcKIo4")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:90:0x0109, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected java.util.HashMap<java.lang.String, java.lang.String> V0(java.lang.String r9) {
        /*
            Method dump skipped, instructions count: 384
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Auete.V0(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Code restructure failed: missing block: B:320:0x03a6, code lost:
    
        r3 = r1;
        r4 = r2;
     */
    /* JADX WARN: Code restructure failed: missing block: B:379:0x0351, code lost:
    
        r1 = 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:392:0x0363, code lost:
    
        r1 = 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:445:0x00dd, code lost:
    
        r2 = r3 + r19;
        r1 = 49914;
     */
    /* JADX WARN: Code restructure failed: missing block: B:446:0x00f1, code lost:
    
        r1 = r1 ^ 49931;
     */
    /* JADX WARN: Code restructure failed: missing block: B:447:0x00f5, code lost:
    
        switch(r1) {
            case 497: goto L516;
            case 1711: goto L517;
            default: goto L518;
        };
     */
    /* JADX WARN: Code restructure failed: missing block: B:449:0x00f9, code lost:
    
        r1 = 50596;
     */
    /* JADX WARN: Code restructure failed: missing block: B:453:0x00fd, code lost:
    
        r1 = r2;
     */
    /* JADX WARN: Code restructure failed: missing block: B:62:0x01fe, code lost:
    
        r3 = r1;
        r4 = r1;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:144:0x046c. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:219:0x026c. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:22:0x0042. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:287:0x02fb. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:492:0x00d5. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:80:0x03d8. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String categoryContent(java.lang.String r19, java.lang.String r20, boolean r21, java.util.HashMap<java.lang.String, java.lang.String> r22) {
        /*
            Method dump skipped, instructions count: 1876
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Auete.categoryContent(java.lang.String, java.lang.String, boolean, java.util.HashMap):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:112:0x0659. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:11:0x0498. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:131:0x0686. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:184:0x05d6. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:192:0x061f. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:233:0x0538. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:283:0x0128. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:305:0x0154. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:332:0x01a8. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:344:0x01c4. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:371:0x0219. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:383:0x0236. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:410:0x028b. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:422:0x02a8. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:449:0x02fd. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:461:0x0316. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:488:0x0367. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:69:0x0563. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x00c3. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:94:0x0593. Please report as an issue. */
    public String detailContent(List<String> list) {
        String str;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        boolean z;
        String str7;
        String m18 = C0006.m18(f13short, 586, 3, 2756);
        String m47 = C0015.m47(f13short, 589, 4, 660);
        String m43 = C0014.m43(f13short, 593, 11, 2912);
        String m35 = C0011.m35(f13short, 604, 13, 1365);
        try {
            Init.getPackage();
            String str8 = C0014.m43(f13short, 617, 18, 1168) + list.get(0) + C0005.m17(f13short, 635, 1, 3079);
            HZ h = lk.h(fP.oq(str8, V0(str8)));
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            String j = h.DQ(m43).j(m47);
            String j2 = h.DQ(m43).j(C0001.m3(f13short, 636, 5, 3181));
            String e = h.Pi(m35).get(h.Pi(m35).size() - 1).e();
            Dv Pi = h.Pi(m35);
            String str9 = "";
            String str10 = "";
            String str11 = "";
            String str12 = "";
            int i = 0;
            String str13 = "";
            String str14 = "";
            while (true) {
                int size = Pi.size();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < size + (-2) ? 1709 : 1678;
                        case 204:
                            Lm lm = Pi.get(i);
                            String e2 = lm.e();
                            boolean contains = e2.contains(C0014.m43(f13short, 641, 2, 1270));
                            String m41 = C0013.m41(f13short, 643, 2, 411);
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = contains ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        boolean contains2 = e2.contains(C0012.m37(f13short, 645, 2, 2817));
                                        int i4 = 48891;
                                        while (true) {
                                            i4 ^= 48908;
                                            switch (i4) {
                                                case 22:
                                                case 53:
                                                    boolean contains3 = e2.contains(C0015.m47(f13short, 647, 2, 2138));
                                                    int i5 = 49914;
                                                    while (true) {
                                                        i5 ^= 49931;
                                                        switch (i5) {
                                                            case 497:
                                                                i5 = contains3 ? 50658 : 50627;
                                                            case 1711:
                                                            case 1736:
                                                                boolean contains4 = e2.contains(C0004.m12(f13short, 649, 4, 1923));
                                                                int i6 = 51588;
                                                                while (true) {
                                                                    i6 ^= 51605;
                                                                    switch (i6) {
                                                                        case 17:
                                                                            i6 = contains4 ? 51681 : 51650;
                                                                        case 54:
                                                                        case 87:
                                                                            boolean contains5 = e2.contains(C0002.m6(f13short, 653, 2, 394));
                                                                            int i7 = 52611;
                                                                            while (true) {
                                                                                i7 ^= 52628;
                                                                                switch (i7) {
                                                                                    case 23:
                                                                                        i7 = contains5 ? 52704 : 52673;
                                                                                    case 54:
                                                                                    case 85:
                                                                                        boolean contains6 = e2.contains(C0004.m12(f13short, 655, 2, 3201));
                                                                                        int i8 = 53634;
                                                                                        while (true) {
                                                                                            i8 ^= 53651;
                                                                                            switch (i8) {
                                                                                                case 17:
                                                                                                    i8 = contains6 ? 53727 : 53696;
                                                                                                case 50:
                                                                                                case 76:
                                                                                                    try {
                                                                                                        String str15 = lm.e().split(m41)[1];
                                                                                                        int i9 = 53758;
                                                                                                        while (true) {
                                                                                                            i9 ^= 53775;
                                                                                                            switch (i9) {
                                                                                                                case 1009:
                                                                                                                    i9 = 54440;
                                                                                                                case 1703:
                                                                                                                    break;
                                                                                                            }
                                                                                                            str3 = str11;
                                                                                                            str4 = str10;
                                                                                                            str5 = str14;
                                                                                                            str6 = str9;
                                                                                                            String str16 = str13;
                                                                                                            str2 = str15;
                                                                                                            str = str16;
                                                                                                            break;
                                                                                                        }
                                                                                                    } catch (Exception e3) {
                                                                                                        str3 = str11;
                                                                                                        str4 = str10;
                                                                                                        str5 = str14;
                                                                                                        str6 = str9;
                                                                                                        String str17 = str13;
                                                                                                        str2 = "";
                                                                                                        str = str17;
                                                                                                        break;
                                                                                                    }
                                                                                                    break;
                                                                                                case 83:
                                                                                                    str = str13;
                                                                                                    str2 = str12;
                                                                                                    str3 = str11;
                                                                                                    str4 = str10;
                                                                                                    str5 = str14;
                                                                                                    str6 = str9;
                                                                                                    break;
                                                                                            }
                                                                                        }
                                                                                        break;
                                                                                    case 116:
                                                                                        try {
                                                                                            str = lm.e().split(m41)[1];
                                                                                            int i10 = 52735;
                                                                                            while (true) {
                                                                                                i10 ^= 52752;
                                                                                                switch (i10) {
                                                                                                    case 14:
                                                                                                        break;
                                                                                                    case 1007:
                                                                                                        i10 = 52766;
                                                                                                }
                                                                                                str2 = str12;
                                                                                                str3 = str11;
                                                                                                str4 = str10;
                                                                                                str5 = str14;
                                                                                                str6 = str9;
                                                                                                break;
                                                                                            }
                                                                                        } catch (Exception e4) {
                                                                                            str = "";
                                                                                            int i11 = 53510;
                                                                                            while (true) {
                                                                                                i11 ^= 53527;
                                                                                                switch (i11) {
                                                                                                    case 17:
                                                                                                        i11 = 53541;
                                                                                                    case 50:
                                                                                                        break;
                                                                                                }
                                                                                                str2 = str12;
                                                                                                str3 = str11;
                                                                                                str4 = str10;
                                                                                                str5 = str14;
                                                                                                str6 = str9;
                                                                                                break;
                                                                                            }
                                                                                        }
                                                                                        break;
                                                                                }
                                                                            }
                                                                            break;
                                                                        case 116:
                                                                            try {
                                                                                String str18 = lm.e().split(m41)[1];
                                                                                int i12 = 51712;
                                                                                while (true) {
                                                                                    i12 ^= 51729;
                                                                                    switch (i12) {
                                                                                        case 17:
                                                                                            i12 = 51743;
                                                                                    }
                                                                                    str4 = str10;
                                                                                    str5 = str14;
                                                                                    str6 = str9;
                                                                                    String str19 = str13;
                                                                                    str2 = str12;
                                                                                    str3 = str18;
                                                                                    str = str19;
                                                                                    break;
                                                                                }
                                                                            } catch (Exception e5) {
                                                                                int i13 = 51836;
                                                                                while (true) {
                                                                                    i13 ^= 51853;
                                                                                    switch (i13) {
                                                                                        case 241:
                                                                                            i13 = 52518;
                                                                                        case 1963:
                                                                                            break;
                                                                                    }
                                                                                    str4 = str10;
                                                                                    str5 = str14;
                                                                                    str6 = str9;
                                                                                    String str20 = str13;
                                                                                    str2 = str12;
                                                                                    str3 = "";
                                                                                    str = str20;
                                                                                    break;
                                                                                }
                                                                            }
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                            case 1769:
                                                                try {
                                                                    String str21 = lm.e().split(m41)[1];
                                                                    int i14 = 50689;
                                                                    while (true) {
                                                                        i14 ^= 50706;
                                                                        switch (i14) {
                                                                            case 19:
                                                                                i14 = 50720;
                                                                            case 50:
                                                                                break;
                                                                        }
                                                                        str5 = str14;
                                                                        str6 = str9;
                                                                        String str22 = str11;
                                                                        str4 = str21;
                                                                        str = str13;
                                                                        str2 = str12;
                                                                        str3 = str22;
                                                                        break;
                                                                    }
                                                                } catch (Exception e6) {
                                                                    int i15 = 50813;
                                                                    while (true) {
                                                                        i15 ^= 50830;
                                                                        switch (i15) {
                                                                            case 18:
                                                                                break;
                                                                            case 243:
                                                                                i15 = 50844;
                                                                        }
                                                                        str5 = str14;
                                                                        str6 = str9;
                                                                        String str23 = str11;
                                                                        str4 = "";
                                                                        str = str13;
                                                                        str2 = str12;
                                                                        str3 = str23;
                                                                        break;
                                                                    }
                                                                }
                                                                break;
                                                        }
                                                    }
                                                    break;
                                                case 503:
                                                    i4 = contains2 ? 49635 : 48953;
                                                case 32495:
                                                    try {
                                                        String str24 = lm.e().split(m41)[1];
                                                        int i16 = 49666;
                                                        while (true) {
                                                            i16 ^= 49683;
                                                            switch (i16) {
                                                                case 17:
                                                                    i16 = 49697;
                                                                case 50:
                                                                    break;
                                                            }
                                                            String str25 = str13;
                                                            str2 = str12;
                                                            str3 = str11;
                                                            str4 = str10;
                                                            str5 = str14;
                                                            str6 = str24;
                                                            str = str25;
                                                            break;
                                                        }
                                                    } catch (Exception e7) {
                                                        int i17 = 49790;
                                                        while (true) {
                                                            i17 ^= 49807;
                                                            switch (i17) {
                                                                case 18:
                                                                    break;
                                                                case 241:
                                                                    i17 = 49821;
                                                            }
                                                            String str26 = str13;
                                                            str2 = str12;
                                                            str3 = str11;
                                                            str4 = str10;
                                                            str5 = str14;
                                                            str6 = "";
                                                            str = str26;
                                                            break;
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                        break;
                                    case 500:
                                        try {
                                            String str27 = lm.e().split(m41)[1];
                                            int i18 = 1864;
                                            while (true) {
                                                i18 ^= 1881;
                                                switch (i18) {
                                                    case 17:
                                                        i18 = 48674;
                                                    case 47483:
                                                        break;
                                                }
                                                str6 = str9;
                                                String str28 = str12;
                                                str3 = str11;
                                                str4 = str10;
                                                str5 = str27;
                                                str = str13;
                                                str2 = str28;
                                                break;
                                            }
                                        } catch (Exception e8) {
                                            int i19 = 48767;
                                            while (true) {
                                                i19 ^= 48784;
                                                switch (i19) {
                                                    case 14:
                                                        break;
                                                    case 239:
                                                        i19 = 48798;
                                                }
                                                str6 = str9;
                                                String str29 = str12;
                                                str3 = str11;
                                                str4 = str10;
                                                str5 = "";
                                                str = str13;
                                                str2 = str29;
                                                break;
                                            }
                                        }
                                        break;
                                }
                            }
                            int i20 = i + 1;
                            int i21 = 54533;
                            while (true) {
                                i21 ^= 54550;
                                switch (i21) {
                                    case 19:
                                        i21 = 54564;
                                        break;
                                    case 50:
                                        break;
                                }
                            }
                            str9 = str6;
                            i = i20;
                            str14 = str5;
                            str10 = str4;
                            str11 = str3;
                            str12 = str2;
                            str13 = str;
                            break;
                        case 239:
                            break;
                    }
                    jSONObject2.put(C0009.m30(f13short, 657, 6, 2683), list.get(0));
                    jSONObject2.put(C0000.m1(f13short, 663, 8, 3144), j2);
                    jSONObject2.put(C0018.m56(f13short, 671, 7, 2916), j);
                    jSONObject2.put(C0014.m43(f13short, 678, 9, 1148), str14);
                    jSONObject2.put(C0005.m17(f13short, 687, 8, 1089), str9);
                    jSONObject2.put(C0001.m3(f13short, 695, 8, 886), str10);
                    jSONObject2.put(C0013.m41(f13short, 703, 11, 1197), str11);
                    jSONObject2.put(C0002.m6(f13short, 714, 9, 2208), str12);
                    jSONObject2.put(C0015.m47(f13short, 723, 12, 694), str13);
                    jSONObject2.put(C0012.m37(f13short, 735, 11, 437), "" + e);
                    TreeMap treeMap = new TreeMap(new Comparator<String>(this) { // from class: com.github.catvod.spider.Auete.1

                        /* renamed from: short, reason: not valid java name */
                        private static final short[] f14short = {1601, 1628};
                        final Auete h;

                        {
                            this.h = this;
                            int m38 = C0012.m38();
                            int i22 = 1616;
                            while (true) {
                                i22 ^= 1633;
                                switch (i22) {
                                    case 14:
                                    case 49:
                                        i22 = m38 >= 0 ? 1709 : 1678;
                                    case 204:
                                        System.out.println(Integer.valueOf(C0007.m25("VqtJ1w8ehzdqhXKZkdROJwK3O6ur")));
                                        break;
                                    case 239:
                                        break;
                                }
                                return;
                            }
                        }

                        /* JADX WARN: Code restructure failed: missing block: B:12:0x0026, code lost:
                        
                            return r2;
                         */
                        @Override // java.util.Comparator
                        /*
                            Code decompiled incorrectly, please refer to instructions dump.
                            To view partially-correct add '--show-bad-code' argument
                        */
                        public /* bridge */ /* synthetic */ int compare(java.lang.String r6, java.lang.String r7) {
                            /*
                                r5 = this;
                                r2 = 0
                                r1 = 0
                                java.lang.String r0 = "ۥۢ۠"
                                r3 = r2
                                r4 = r2
                                r2 = r1
                            L7:
                                int r0 = com.github.catvod.parser.C0006.m20(r0)
                                switch(r0) {
                                    case 1746785: goto L1e;
                                    case 1750819: goto L26;
                                    case 1752547: goto L16;
                                    default: goto Le;
                                }
                            Le:
                                int r1 = r5.compare2(r4, r3)
                                java.lang.String r0 = "ۣۨۨ"
                                r2 = r1
                                goto L7
                            L16:
                                r0 = r6
                                java.lang.String r0 = (java.lang.String) r0
                                java.lang.String r1 = "۟ۢۤ"
                                r4 = r0
                                r0 = r1
                                goto L7
                            L1e:
                                r0 = r7
                                java.lang.String r0 = (java.lang.String) r0
                                java.lang.String r1 = "ۡۤ"
                                r3 = r0
                                r0 = r1
                                goto L7
                            L26:
                                return r2
                            */
                            throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Auete.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int");
                        }

                        /* renamed from: compare, reason: avoid collision after fix types in other method */
                        public int compare2(String str30, String str31) {
                            int i22;
                            int i23;
                            int i24;
                            String m9 = C0003.m9(f14short, 0, 2, 1582);
                            try {
                                i22 = this.h.h.getJSONObject(str30).getInt(m9);
                                i23 = this.h.h.getJSONObject(str31).getInt(m9);
                                i24 = 1616;
                            } catch (JSONException e9) {
                                SpiderDebug.log(e9);
                                return 1;
                            }
                            while (true) {
                                i24 ^= 1633;
                                switch (i24) {
                                    case 14:
                                    case 49:
                                        i24 = i22 == i23 ? 1709 : 1678;
                                    case 204:
                                        break;
                                    case 239:
                                        int i25 = 1740;
                                        while (true) {
                                            i25 ^= 1757;
                                            switch (i25) {
                                                case 17:
                                                    i25 = i22 - i23 > 0 ? 1833 : 1802;
                                                case 54:
                                                case 471:
                                                    break;
                                                case 500:
                                                    int i26 = 1864;
                                                    while (true) {
                                                        i26 ^= 1881;
                                                        switch (i26) {
                                                            case 17:
                                                                i26 = 48674;
                                                                break;
                                                            case 47483:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                        break;
                                }
                                return 1;
                            }
                        }
                    });
                    Dv Pi2 = h.Pi(C0003.m9(f13short, 746, 18, 2626));
                    Dv Pi3 = h.Pi(C0012.m37(f13short, 764, 18, 1679));
                    int i22 = 0;
                    while (true) {
                        int size2 = Pi2.size();
                        int i23 = 54657;
                        while (true) {
                            i23 ^= 54674;
                            switch (i23) {
                                case 19:
                                    i23 = i22 < size2 ? 55401 : 54719;
                                case 45:
                                    break;
                                case 50:
                                case 3579:
                                    String str30 = Pi2.get(i22).e().split(C0011.m35(f13short, 782, 1, 2591))[1].split(C0011.m35(f13short, 783, 1, 553))[0];
                                    Iterator<String> keys = this.h.keys();
                                    while (true) {
                                        boolean hasNext = keys.hasNext();
                                        int i24 = 55432;
                                        while (true) {
                                            i24 ^= 55449;
                                            switch (i24) {
                                                case 17:
                                                    i24 = hasNext ? 55525 : 55494;
                                                case 62:
                                                case 95:
                                                    z = false;
                                                    break;
                                                case 124:
                                                    String next = keys.next();
                                                    boolean equals = this.h.getJSONObject(next).getString(C0006.m18(f13short, 784, 2, 1299)).equals(str30);
                                                    int i25 = 55556;
                                                    while (true) {
                                                        i25 ^= 55573;
                                                        switch (i25) {
                                                            case 17:
                                                                i25 = equals ? 55649 : 55618;
                                                            case 54:
                                                            case 87:
                                                                break;
                                                            case 116:
                                                                int i26 = 55680;
                                                                while (true) {
                                                                    i26 ^= 55697;
                                                                    switch (i26) {
                                                                        case 17:
                                                                            i26 = 56362;
                                                                        case 1467:
                                                                            break;
                                                                    }
                                                                    str30 = next;
                                                                    z = true;
                                                                    break;
                                                                }
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                    }
                                    int i27 = 56455;
                                    while (true) {
                                        i27 ^= 56472;
                                        switch (i27) {
                                            case 31:
                                                i27 = !z ? 56548 : 56517;
                                            case 62:
                                            case 93:
                                                Dv Pi4 = Pi3.get(i22).Pi(C0000.m1(f13short, 786, 6, 1684));
                                                ArrayList arrayList = new ArrayList();
                                                int i28 = 0;
                                                while (true) {
                                                    int size3 = Pi4.size();
                                                    int i29 = 1507503;
                                                    while (true) {
                                                        i29 ^= 1507520;
                                                        switch (i29) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 111:
                                                                i29 = i28 < size3 ? 1507596 : 1507565;
                                                            case 460:
                                                                Lm lm2 = Pi4.get(i28);
                                                                Matcher matcher = this.I.matcher(lm2.j(m47));
                                                                boolean find = matcher.find();
                                                                int i30 = 1507627;
                                                                while (true) {
                                                                    i30 ^= 1507644;
                                                                    switch (i30) {
                                                                        case 23:
                                                                            i30 = !find ? 1507720 : 1507689;
                                                                        case 85:
                                                                            String group = matcher.group(1);
                                                                            StringBuilder sb = new StringBuilder();
                                                                            sb.append(lm2.e());
                                                                            sb.append(C0018.m56(f13short, 792, 1, 1487));
                                                                            sb.append(group);
                                                                            arrayList.add(sb.toString());
                                                                            break;
                                                                        case 118:
                                                                        case 180:
                                                                            int i31 = 1507751;
                                                                            while (true) {
                                                                                i31 ^= 1507768;
                                                                                switch (i31) {
                                                                                    case 31:
                                                                                        i31 = 1508433;
                                                                                    case 1513:
                                                                                        break;
                                                                                }
                                                                                break;
                                                                            }
                                                                            break;
                                                                    }
                                                                }
                                                                int i32 = i28 + 1;
                                                                int i33 = 1508526;
                                                                while (true) {
                                                                    i33 ^= 1508543;
                                                                    switch (i33) {
                                                                        case 17:
                                                                            i33 = 1508557;
                                                                        case 114:
                                                                            break;
                                                                    }
                                                                }
                                                                i28 = i32;
                                                                break;
                                                        }
                                                        int size4 = arrayList.size();
                                                        int i34 = 1508650;
                                                        while (true) {
                                                            i34 ^= 1508667;
                                                            switch (i34) {
                                                                case 17:
                                                                    i34 = size4 > 0 ? 1509394 : 1508712;
                                                                case 83:
                                                                    str7 = "";
                                                                    break;
                                                                case 114:
                                                                case 3369:
                                                                    String join = TextUtils.join(C0001.m3(f13short, 793, 1, 473), arrayList);
                                                                    int i35 = 1509425;
                                                                    while (true) {
                                                                        i35 ^= 1509442;
                                                                        switch (i35) {
                                                                            case 18:
                                                                                break;
                                                                            case 115:
                                                                                i35 = 1509456;
                                                                        }
                                                                        str7 = join;
                                                                        break;
                                                                    }
                                                                    break;
                                                            }
                                                        }
                                                        int length = str7.length();
                                                        int i36 = 1509549;
                                                        while (true) {
                                                            i36 ^= 1509566;
                                                            switch (i36) {
                                                                case 19:
                                                                    i36 = length == 0 ? 1509642 : 1509611;
                                                                case 85:
                                                                    treeMap.put(str30, str7);
                                                                    break;
                                                                case 114:
                                                                case 436:
                                                                    int i37 = 1509673;
                                                                    while (true) {
                                                                        i37 ^= 1509690;
                                                                        switch (i37) {
                                                                            case 19:
                                                                                i37 = 1510355;
                                                                            case 745:
                                                                                break;
                                                                        }
                                                                        break;
                                                                    }
                                                            }
                                                        }
                                                    }
                                                }
                                                break;
                                            case 124:
                                                int i38 = 56579;
                                                while (true) {
                                                    i38 ^= 56596;
                                                    switch (i38) {
                                                        case 23:
                                                            i38 = 56610;
                                                        case 54:
                                                            break;
                                                    }
                                                    break;
                                                }
                                        }
                                    }
                                    int i39 = i22 + 1;
                                    int i40 = 1510448;
                                    while (true) {
                                        i40 ^= 1510465;
                                        switch (i40) {
                                            case 14:
                                                break;
                                            case 113:
                                                i40 = 1510479;
                                                break;
                                        }
                                    }
                                    i22 = i39;
                                    break;
                            }
                            int size5 = treeMap.size();
                            int i41 = 1510572;
                            while (true) {
                                i41 ^= 1510589;
                                switch (i41) {
                                    case 17:
                                        if (size5 <= 0) {
                                            break;
                                        } else {
                                            i41 = 1511316;
                                        }
                                    case 87:
                                        break;
                                    case 118:
                                        break;
                                    case 809:
                                        String join2 = TextUtils.join(m18, treeMap.keySet());
                                        String join3 = TextUtils.join(m18, treeMap.values());
                                        jSONObject2.put(C0002.m6(f13short, 794, 13, 1723), join2);
                                        jSONObject2.put(C0011.m35(f13short, 807, 12, 2086), join3);
                                        break;
                                    default:
                                        continue;
                                }
                                i41 = 1510634;
                            }
                            JSONArray jSONArray = new JSONArray();
                            jSONArray.put(jSONObject2);
                            jSONObject.put(C0008.m27(f13short, 819, 4, 1380), jSONArray);
                            return jSONObject.toString();
                        }
                    }
                }
            }
        } catch (Exception e9) {
            SpiderDebug.log(e9);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:199:0x0185. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:212:0x0148. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:29:0x01fb. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:73:0x0298. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:7:0x0046. Please report as an issue. */
    public String homeContent(boolean z) {
        boolean z2;
        Dv Pi;
        JSONArray jSONArray;
        int i = 0;
        String m17 = C0005.m17(f13short, 823, 17, 2308);
        try {
            HZ h = lk.h(fP.oq(m17, V0(m17)));
            Dv Pi2 = h.Pi(C0000.m1(f13short, 840, 36, 843));
            JSONArray jSONArray2 = new JSONArray();
            Iterator<Lm> it = Pi2.iterator();
            while (true) {
                boolean hasNext = it.hasNext();
                String m47 = C0015.m47(f13short, 876, 4, 1824);
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = hasNext ? 1709 : 1678;
                        case 204:
                            Lm next = it.next();
                            String e = next.e();
                            boolean equals = e.equals(C0011.m35(f13short, 880, 2, 914));
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = !equals ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        boolean equals2 = e.equals(C0002.m6(f13short, 882, 3, 2262));
                                        int i4 = 1864;
                                        while (true) {
                                            i4 ^= 1881;
                                            switch (i4) {
                                                case 17:
                                                    i4 = !equals2 ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    boolean equals3 = e.equals(C0009.m30(f13short, 885, 2, 3246));
                                                    int i5 = 48767;
                                                    while (true) {
                                                        i5 ^= 48784;
                                                        switch (i5) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 76:
                                                                boolean equals4 = e.equals(C0003.m9(f13short, 887, 2, 2876));
                                                                int i6 = 48891;
                                                                while (true) {
                                                                    i6 ^= 48908;
                                                                    switch (i6) {
                                                                        case 22:
                                                                        case 53:
                                                                            break;
                                                                        case 503:
                                                                            i6 = !equals4 ? 49635 : 48953;
                                                                        case 32495:
                                                                            boolean equals5 = e.equals(C0013.m41(f13short, 889, 2, 684));
                                                                            int i7 = 49666;
                                                                            while (true) {
                                                                                i7 ^= 49683;
                                                                                switch (i7) {
                                                                                    case 17:
                                                                                        i7 = equals5 ? 49759 : 49728;
                                                                                    case 50:
                                                                                    case 76:
                                                                                        break;
                                                                                    case 83:
                                                                                        z2 = false;
                                                                                        break;
                                                                                }
                                                                            }
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                            case 239:
                                                                i5 = !equals3 ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            z2 = true;
                            int i8 = 49790;
                            while (true) {
                                i8 ^= 49807;
                                switch (i8) {
                                    case 18:
                                    case 51:
                                        break;
                                    case 84:
                                        Matcher matcher = this.j.matcher(next.j(m47));
                                        boolean find = matcher.find();
                                        int i9 = 49914;
                                        while (true) {
                                            i9 ^= 49931;
                                            switch (i9) {
                                                case 497:
                                                    i9 = !find ? 50658 : 50627;
                                                case 1711:
                                                case 1736:
                                                    String trim = matcher.group(1).trim();
                                                    JSONObject jSONObject = new JSONObject();
                                                    jSONObject.put(C0012.m37(f13short, 891, 7, 1713), trim);
                                                    jSONObject.put(C0000.m1(f13short, 898, 9, 1509), e);
                                                    jSONArray2.put(jSONObject);
                                                    int i10 = 50813;
                                                    while (true) {
                                                        i10 ^= 50830;
                                                        switch (i10) {
                                                            case 18:
                                                                break;
                                                            case 243:
                                                                i10 = 50844;
                                                        }
                                                    }
                                                    break;
                                                case 1769:
                                                    int i11 = 50689;
                                                    while (true) {
                                                        i11 ^= 50706;
                                                        switch (i11) {
                                                            case 19:
                                                                i11 = 50720;
                                                            case 50:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                            }
                                        }
                                        break;
                                    case 241:
                                        i8 = z2 ? 49883 : 49852;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject2 = new JSONObject();
                    int i12 = 51588;
                    while (true) {
                        i12 ^= 51605;
                        switch (i12) {
                            case 17:
                                if (!z) {
                                    break;
                                } else {
                                    i12 = 51681;
                                }
                            case 54:
                                break;
                            case 87:
                                break;
                            case 116:
                                jSONObject2.put(C0018.m56(f13short, 907, 7, 2227), this.V0);
                                break;
                            default:
                                continue;
                        }
                        i12 = 51650;
                    }
                    jSONObject2.put(C0012.m37(f13short, 914, 5, 2568), jSONArray2);
                    try {
                        Pi = h.Pi(C0003.m9(f13short, 919, 13, 1057)).get(0).Pi(C0003.m9(f13short, 932, 2, 1408));
                        jSONArray = new JSONArray();
                    } catch (Exception e2) {
                        SpiderDebug.log(e2);
                    }
                    while (true) {
                        int size = Pi.size();
                        int i13 = 51712;
                        while (true) {
                            i13 ^= 51729;
                            switch (i13) {
                                case 14:
                                case 17:
                                    i13 = i < size ? 51805 : 51774;
                                case 47:
                                    break;
                                case 76:
                                    Lm lm = Pi.get(i);
                                    String j = lm.DQ(C0009.m30(f13short, 934, 4, 3236)).j(C0012.m37(f13short, 938, 5, 1804));
                                    String j2 = lm.DQ(C0005.m17(f13short, 943, 5, 1501)).j(C0003.m9(f13short, 948, 3, 2263));
                                    String e3 = lm.DQ(C0015.m47(f13short, 951, 8, 507)).e();
                                    Matcher matcher2 = this.q.matcher(lm.DQ(C0012.m37(f13short, 959, 1, 3083)).j(m47));
                                    boolean find2 = matcher2.find();
                                    int i14 = 51836;
                                    while (true) {
                                        i14 ^= 51853;
                                        switch (i14) {
                                            case 241:
                                                i14 = !find2 ? 52580 : 52549;
                                            case 1963:
                                            case 1992:
                                                String group = matcher2.group(1);
                                                JSONObject jSONObject3 = new JSONObject();
                                                jSONObject3.put(C0011.m35(f13short, 960, 6, 860), group);
                                                jSONObject3.put(C0004.m12(f13short, 966, 8, 2749), j);
                                                jSONObject3.put(C0002.m6(f13short, 974, 7, 2200), j2);
                                                jSONObject3.put(C0011.m35(f13short, 981, 11, 3149), e3);
                                                jSONArray.put(jSONObject3);
                                                break;
                                            case 2025:
                                                int i15 = 52611;
                                                while (true) {
                                                    i15 ^= 52628;
                                                    switch (i15) {
                                                        case 23:
                                                            i15 = 52642;
                                                        case 54:
                                                            break;
                                                    }
                                                    break;
                                                }
                                        }
                                    }
                                    i++;
                                    int i16 = 52735;
                                    while (true) {
                                        i16 ^= 52752;
                                        switch (i16) {
                                            case 14:
                                                break;
                                            case 1007:
                                                i16 = 52766;
                                                break;
                                        }
                                    }
                                    break;
                            }
                            jSONObject2.put(C0003.m9(f13short, 992, 4, 654), jSONArray);
                            int i17 = 53510;
                            while (true) {
                                i17 ^= 53527;
                                switch (i17) {
                                    case 17:
                                        i17 = 53541;
                                        break;
                                    case 50:
                                        break;
                                }
                            }
                        }
                        return jSONObject2.toString();
                    }
                }
            }
        } catch (Exception e4) {
            SpiderDebug.log(e4);
            return "";
        }
    }

    public void init(Context context) {
        int i;
        super.init(context);
        try {
            this.h = new JSONObject("{\"dphd\":{\"sh\":\"云播A线\",\"pu\":\"\",\"sn\":0,\"or\":999},\"cyun\":{\"sh\":\"云播C线\",\"pu\":\"\",\"sn\":0,\"or\":999},\"dbm3u8\":{\"sh\":\"云播D线\",\"pu\":\"\",\"sn\":0,\"or\":999},\"i8i\":{\"sh\":\"云播E线\",\"pu\":\"\",\"sn\":0,\"or\":999},\"m3u8hd\":{\"sh\":\"云播F线\",\"pu\":\"https://auete.pro/api/?url=\",\"sn\":1,\"or\":999},\"languang\":{\"sh\":\"云播G线\",\"pu\":\"https://auete.pro/api/?url=\",\"sn\":1,\"or\":999},\"hyun\":{\"sh\":\"云播H线\",\"pu\":\"https://auete.pro/api/?url=\",\"sn\":1,\"or\":999},\"kyun\":{\"sh\":\"云播K线\",\"pu\":\"https://auete.pro/api/?url=\",\"sn\":1,\"or\":999},\"bpyueyu\":{\"sh\":\"云播粤语\",\"pu\":\"\",\"sn\":0,\"or\":999},\"bpguoyu\":{\"sh\":\"云播国语\",\"pu\":\"\",\"sn\":0,\"or\":999},\"yyun\":{\"sh\":\"云播Y线\",\"pu\":\"\",\"sn\":0,\"or\":999},\"myun\":{\"sh\":\"云播M线\",\"pu\":\"\",\"sn\":0,\"or\":999}}");
            this.V0 = new JSONObject("{\"Movie\":[{\"key\":0,\"name\":\"分类\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"喜剧片\",\"v\":\"xjp\"},{\"n\":\"动作片\",\"v\":\"dzp\"},{\"n\":\"爱情片\",\"v\":\"aqp\"},{\"n\":\"科幻片\",\"v\":\"khp\"},{\"n\":\"恐怖片\",\"v\":\"kbp\"},{\"n\":\"惊悚片\",\"v\":\"jsp\"},{\"n\":\"战争片\",\"v\":\"zzp\"},{\"n\":\"剧情片\",\"v\":\"jqp\"}]}],\"Tv\":[{\"key\":0,\"name\":\"分类\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"美剧\",\"v\":\"oumei\"},{\"n\":\"韩剧\",\"v\":\"hanju\"},{\"n\":\"日剧\",\"v\":\"riju\"},{\"n\":\"泰剧\",\"v\":\"yataiju\"},{\"n\":\"网剧\",\"v\":\"wangju\"},{\"n\":\"台剧\",\"v\":\"taiju\"},{\"n\":\"国产\",\"v\":\"neidi\"},{\"n\":\"港剧\",\"v\":\"tvbgj\"}]}],\"Zy\":[{\"key\":0,\"name\":\"分类\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"国综\",\"v\":\"guozong\"},{\"n\":\"韩综\",\"v\":\"hanzong\"},{\"n\":\"美综\",\"v\":\"meizong\"}]}],\"Dm\":[{\"key\":0,\"name\":\"分类\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"动画\",\"v\":\"donghua\"},{\"n\":\"日漫\",\"v\":\"riman\"},{\"n\":\"国漫\",\"v\":\"guoman\"},{\"n\":\"美漫\",\"v\":\"meiman\"}]}],\"qita\":[{\"key\":0,\"name\":\"分类\",\"value\":[{\"n\":\"全部\",\"v\":\"\"},{\"n\":\"纪录片\",\"v\":\"Jlp\"},{\"n\":\"经典片\",\"v\":\"Jdp\"},{\"n\":\"经典剧\",\"v\":\"Jdj\"},{\"n\":\"网大电影\",\"v\":\"wlp\"},{\"n\":\"国产老电影\",\"v\":\"laodianying\"}]}]}");
            i = 1616;
        } catch (JSONException e) {
            SpiderDebug.log(e);
        }
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                    break;
                case 49:
                    i = 1647;
                    continue;
            }
            int m0 = C0000.m0();
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = m0 >= 0 ? 1833 : 1802;
                    case 54:
                    case 471:
                        break;
                    case 500:
                        System.out.println(Integer.parseInt(C0002.m7("6noDvmQCj0UqItDn1yaHycbLjd")));
                        break;
                }
                return;
            }
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:115:0x01d5. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:159:0x02e1. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:203:0x0293. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:27:0x00c3. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x005a. Please report as an issue. */
    public String playerContent(String str, String str2, List<String> list) {
        String m52 = C0017.m52(f13short, 996, 1, 1018);
        try {
            String str3 = C0003.m9(f13short, 997, 17, 2591) + str2;
            Dv Pi = lk.h(fP.oq(str3, V0(str3))).Pi(C0006.m18(f13short, 1014, 10, 2558));
            JSONObject jSONObject = new JSONObject();
            Iterator<Lm> it = Pi.iterator();
            String str4 = "";
            String str5 = "";
            while (true) {
                boolean hasNext = it.hasNext();
                int i = 1616;
                while (true) {
                    i ^= 1633;
                    switch (i) {
                        case 14:
                        case 49:
                            i = hasNext ? 1709 : 1678;
                        case 204:
                            String[] split = it.next().g6().toString().split(C0003.m9(f13short, 1024, 3, 3153));
                            int length = split.length;
                            int i2 = 0;
                            while (true) {
                                String m27 = C0008.m27(f13short, 1027, 6, 1523);
                                String m272 = C0008.m27(f13short, 1033, 3, 690);
                                String m1 = C0000.m1(f13short, 1036, 7, 2456);
                                String m30 = C0009.m30(f13short, 1043, 5, 1550);
                                int i3 = 1740;
                                while (true) {
                                    i3 ^= 1757;
                                    switch (i3) {
                                        case 17:
                                            i3 = i2 < length ? 1833 : 1802;
                                        case 54:
                                        case 471:
                                            break;
                                        case 500:
                                            String str6 = split[i2];
                                            boolean contains = str6.contains(m52);
                                            int i4 = 1864;
                                            while (true) {
                                                i4 ^= 1881;
                                                switch (i4) {
                                                    case 17:
                                                        i4 = contains ? 48736 : 48705;
                                                    case 47384:
                                                        break;
                                                    case 47417:
                                                        boolean contains2 = str6.contains(C0018.m56(f13short, 1048, 3, 2526));
                                                        String m17 = C0005.m17(f13short, 1051, 1, 2347);
                                                        String m37 = C0012.m37(f13short, 1052, 1, 427);
                                                        int i5 = 48767;
                                                        while (true) {
                                                            i5 ^= 48784;
                                                            switch (i5) {
                                                                case 14:
                                                                case 45:
                                                                    break;
                                                                case 76:
                                                                    String replaceAll = str6.split(m52)[1].replaceAll(m37, "").replaceAll(m17, "");
                                                                    boolean startsWith = replaceAll.startsWith(C0005.m17(f13short, 1053, 6, 1007));
                                                                    int i6 = 48891;
                                                                    while (true) {
                                                                        i6 ^= 48908;
                                                                        switch (i6) {
                                                                            case 22:
                                                                            case 53:
                                                                                str5 = replaceAll;
                                                                                break;
                                                                            case 503:
                                                                                i6 = startsWith ? 49635 : 48953;
                                                                            case 32495:
                                                                                str5 = new String(Base64.decode(replaceAll.split(C0018.m56(f13short, 1059, 2, 1637))[1].split(C0003.m9(f13short, 1061, 2, 1528))[0].getBytes(), 0));
                                                                                int i7 = 49666;
                                                                                while (true) {
                                                                                    i7 ^= 49683;
                                                                                    switch (i7) {
                                                                                        case 17:
                                                                                            i7 = 49697;
                                                                                        case 50:
                                                                                            break;
                                                                                    }
                                                                                    break;
                                                                                }
                                                                                break;
                                                                        }
                                                                    }
                                                                    boolean startsWith2 = str5.startsWith(C0008.m27(f13short, 1063, 4, 3199));
                                                                    int i8 = 49790;
                                                                    while (true) {
                                                                        i8 ^= 49807;
                                                                        switch (i8) {
                                                                            case 18:
                                                                            case 51:
                                                                                boolean contains3 = str5.contains(C0018.m56(f13short, 1067, 4, 2321));
                                                                                int i9 = 50689;
                                                                                while (true) {
                                                                                    i9 ^= 50706;
                                                                                    switch (i9) {
                                                                                        case 19:
                                                                                            i9 = contains3 ? 50782 : 50751;
                                                                                        case 45:
                                                                                            break;
                                                                                        case 50:
                                                                                        case 76:
                                                                                            jSONObject.put(m30, 0);
                                                                                            jSONObject.put(m1, "");
                                                                                            jSONObject.put(m272, C0004.m12(f13short, 1071, 64, 1598) + str5);
                                                                                            jSONObject.put(m27, "");
                                                                                            int i10 = 50813;
                                                                                            while (true) {
                                                                                                i10 ^= 50830;
                                                                                                switch (i10) {
                                                                                                    case 18:
                                                                                                        break;
                                                                                                    case 243:
                                                                                                        i10 = 50844;
                                                                                                }
                                                                                                break;
                                                                                            }
                                                                                            break;
                                                                                    }
                                                                                }
                                                                                break;
                                                                            case 84:
                                                                                jSONObject.put(m30, 0);
                                                                                jSONObject.put(m1, "");
                                                                                jSONObject.put(m272, str5);
                                                                                jSONObject.put(m27, "");
                                                                                int i11 = 49914;
                                                                                while (true) {
                                                                                    i11 ^= 49931;
                                                                                    switch (i11) {
                                                                                        case 497:
                                                                                            i11 = 50596;
                                                                                        case 1711:
                                                                                            break;
                                                                                    }
                                                                                }
                                                                                break;
                                                                            case 241:
                                                                                i8 = startsWith2 ? 49883 : 49852;
                                                                        }
                                                                    }
                                                                    break;
                                                                case 239:
                                                                    i5 = contains2 ? 48860 : 48829;
                                                            }
                                                        }
                                                        boolean contains4 = str6.contains(C0007.m26(f13short, 1135, 2, 1555));
                                                        int i12 = 51588;
                                                        while (true) {
                                                            i12 ^= 51605;
                                                            switch (i12) {
                                                                case 17:
                                                                    i12 = contains4 ? 51681 : 51650;
                                                                case 54:
                                                                case 87:
                                                                    break;
                                                                case 116:
                                                                    str4 = str6.split(m52)[1].replaceAll(m37, "").replaceAll(m17, "");
                                                                    int i13 = 51712;
                                                                    while (true) {
                                                                        i13 ^= 51729;
                                                                        switch (i13) {
                                                                            case 17:
                                                                                i13 = 51743;
                                                                        }
                                                                        break;
                                                                    }
                                                                    break;
                                                            }
                                                        }
                                                        break;
                                                    case 47483:
                                                }
                                            }
                                            i2++;
                                            int i14 = 51836;
                                            while (true) {
                                                i14 ^= 51853;
                                                switch (i14) {
                                                    case 241:
                                                        i14 = 52518;
                                                        break;
                                                    case 1963:
                                                        break;
                                                }
                                            }
                                            break;
                                    }
                                    boolean has = this.h.has(str4);
                                    int i15 = 52611;
                                    while (true) {
                                        i15 ^= 52628;
                                        switch (i15) {
                                            case 23:
                                                i15 = has ? 52704 : 52673;
                                            case 54:
                                            case 85:
                                                break;
                                            case 116:
                                                JSONObject jSONObject2 = this.h.getJSONObject(str4);
                                                String string = jSONObject2.getString(C0017.m52(f13short, 1137, 2, 451));
                                                jSONObject.put(m30, jSONObject2.getInt(C0015.m47(f13short, 1139, 2, 604)));
                                                jSONObject.put(m1, string);
                                                jSONObject.put(m272, str5);
                                                jSONObject.put(m27, "");
                                                break;
                                        }
                                    }
                                    int i16 = 52735;
                                    while (true) {
                                        i16 ^= 52752;
                                        switch (i16) {
                                            case 14:
                                                break;
                                            case 1007:
                                                i16 = 52766;
                                                break;
                                        }
                                    }
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    return jSONObject.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public String searchContent(String str, boolean z) {
        String m18 = C0006.m18(f13short, 1141, 11, 1686);
        String m27 = C0008.m27(f13short, 1152, 3, 697);
        String m41 = C0013.m41(f13short, 1155, 4, 1800);
        try {
            String str2 = C0006.m18(f13short, 1159, 29, 3146) + str + C0015.m47(f13short, 1188, 15, 2436);
            HZ h = lk.h(fP.oq(str2, V0(str2)));
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            String I = h.Pi(C0012.m37(f13short, 1203, 18, 1987)).I();
            String h2 = h.Pi(C0002.m6(f13short, 1221, 20, 1857)).h(m41);
            System.out.println(m27 + I);
            System.out.println(m27 + h2);
            boolean contains = I.contains(str);
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!contains) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        boolean contains2 = h2.contains(C0005.m17(f13short, 1241, 9, 1094));
                        int i2 = 1740;
                        while (true) {
                            i2 ^= 1757;
                            switch (i2) {
                                case 17:
                                    if (!contains2) {
                                        break;
                                    } else {
                                        i2 = 1833;
                                    }
                                case 54:
                                    break;
                                case 471:
                                    break;
                                case 500:
                                    Matcher matcher = this.q.matcher(h2);
                                    boolean find = matcher.find();
                                    int i3 = 1864;
                                    while (true) {
                                        i3 ^= 1881;
                                        switch (i3) {
                                            case 17:
                                                if (!find) {
                                                    break;
                                                } else {
                                                    i3 = 48736;
                                                }
                                            case 47384:
                                                break;
                                            case 47417:
                                                HZ h3 = lk.h(fP.oq(str2, V0(str2)));
                                                String j = h3.DQ(m18).j(m41);
                                                String j2 = h3.DQ(m18).j(C0002.m6(f13short, 1250, 5, 1142));
                                                JSONObject jSONObject2 = new JSONObject();
                                                String group = matcher.group(1);
                                                jSONObject2.put(C0014.m43(f13short, 1255, 8, 2711), j2);
                                                jSONObject2.put(C0015.m47(f13short, 1264, 11, 556), C0004.m12(f13short, 1263, 1, 2384));
                                                jSONObject2.put(C0011.m35(f13short, 1275, 6, 2255), group.replace(C0000.m1(f13short, 1281, 18, 675), ""));
                                                jSONObject2.put(C0006.m18(f13short, 1299, 7, 1554), j);
                                                jSONArray.put(jSONObject2);
                                                break;
                                            case 47483:
                                                break;
                                            default:
                                                continue;
                                        }
                                        i3 = 48705;
                                    }
                                default:
                                    continue;
                            }
                            i2 = 1802;
                        }
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            jSONObject.put(C0017.m52(f13short, 1306, 4, 1675), jSONArray);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }
}
